package com.zmxtea.shop.service;

import com.zmxtea.shop.entity.goods.Goods;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Author: zhyx
 * Date:2017/10/20
 * Time:13:50
 */
public interface GoodsRepository extends JpaRepository<Goods, Integer> {

    Goods findById(Integer id);
    List<Goods> findAll();
    List<Goods> findAllByName(PageRequest pageRequest);
}
